home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF R2 for CodeWarrior 10 / Read Me < prev   
Encoding:
Text File  |  1996-09-30  |  5.1 KB  |  47 lines  |  [TEXT/ttxt]

  1. OpenDoc
  2. Development
  3. Framework
  4.                                                                                                                                                                                      
  5. CodeWarrior 9 ->10 Conversion
  6. ODF Release 2                                                                                                                                                            
  7.  
  8.  
  9. What's In This Package
  10.  
  11. This update to ODF Release 2 contains files necessary to update the CodeWarrior support of Release 2 to version 10 of CodeWarrior. The update consists of two components. The first component is an AppleScript applet called “ODF CW10 Conversion Script.” When executed, this script sequentially opens all of the CodeWarrior projects included in the ODF 2 release in CodeWarrior, and instructs CodeWarrior to convert the project to the CW 10 format. The second component is a collection of source and header files that are drop-in replacements for files that shipped with the ODF Release 2 distribution.
  12.  
  13. Preparing a CodeWarrior 10 Environment
  14.  
  15. Before installing this update, you should prepare a CodeWarrior 10 build environment for use with ODF. Begin by installing CodeWarrior on your hard drive. Once you have installed CodeWarrior, carry out the following steps:
  16.  
  17. • Copy the ODFRC plugin for CodeWarrior from your CodeWarrior 9 environment to your CodeWarrior 10 environment. The ODFRC plugin can be found in a subfolder of the “Getting Started:CodeWarrior Developement” folder of the ODF Release 2 distribution. The ODFRC plugin should be placed in the folder "Metrowerks CodeWarrior:CodeWarrior Plugins:Compilers:".
  18.  
  19. • Hide the “OpenDoc Utilities” headers that shipped with CodeWarrior 10. This is necessary because ODF includes a copy of the OpenDoc Utilities headers modified for use with ODF. To hide this directory, rename the folder “Metrowerks CodeWarrior:MacOS Support:Headers:OpenDoc Headers:OpenDoc Utilities:" to “Metrowerks CodeWarrior:MacOS Support:Headers:OpenDoc Headers:(OpenDoc Utilities):". Parenthesizing the name of this folder will cause CodeWarrior to ignore the contents of the folder when searching for included header files.
  20.  
  21. • Copy the Cyberdog SDK from your CodeWarrior 9 folder to your CodeWarrior 10 folder. If you installed it into your CodeWarrior 9 environment, it can be found at “Metrowerks CodeWarrior:MacOS Support:Headers:Cyberdog SDK:". The CyberDog SDK shipped as part of the ODF Release 2 distribution in a subfolder of the  “Getting Started:CodeWarrior Development” folder. The “Cyberdog SDK” folder should be placed within the  “Metrowerks CodeWarrior:MacOS Support:Headers:” folder of your CodeWarrior 10 environment.
  22.  
  23. Installing the Update
  24.  
  25. This conversion package contains four files that replace files that shipped as part of ODF Release 2. Begin installing this update by replacing the ODF Release 2 files with the versions included in this update.
  26.  
  27. Replace the following files with the included replacements of the same name:
  28.  
  29. “ODFDev:ODF:Found:FWCommon:FWPriMem.cpp”
  30. “ODFDev:ODF:Found:FWCommon:FWPriMem.h”
  31. “ODFDev:ODF:Found:FWMemory:FWNew.h”
  32. “ODFDev:ODF:Found:FWODExce:FWODExce.cpp”
  33.  
  34. Once you have replaced the files, execute the “ODF CW10 Conversion Script” AppleScript applet. The script will ask you to locate your copy of the CodeWarrior IDE. Select the version of the CodeWarrior IDE that shipped with CodeWarrior 10. Deleting CodeWarrior release 9 from your system before executing this script will guarantee that the correct version of CodeWarrior is executed.
  35.  
  36. The script will open each of the CW9 projects included with ODF Release 2 in CodeWarrior. CodeWarrior will silently convert each project to the CodeWarrior 10 format. When CodeWarrior converts the project, it will create a copy of the original, unconverted project. This script will delete each the copy of each CW9 project as it progresses through the conversion.
  37.  
  38. Once you have executed the update script, you will need to rebuild ODF using the “ODF Builder” application. After ODF has been rebuilt, you can convert and rebuild your part projects.
  39.  
  40. Caveat
  41.  
  42. After updating to CodeWarrior 10, you will begin getting a link warning every time you link an ODF-based OpenDoc part. The link warning will read, “Link Warning : ignored duplicate resource ‘cfrg’(0) in ‘*Linker-Generated*’”. This warning occurs when CodeWarrior attempts to create a 'cfrg' resource for the part being built, and encounters an existing 'cfrg' resource that was generated from the part's “Part.r” resource file.  CodeWarrior 9 silently ignored this condition - CodeWarrior 10 warns. The default 'cfrg' that CodeWarrior is trying to create is inaccurate - it does not contain the SOM module information present in the 'cfrg' resources we include with our parts. It is important that you not try to work around this warning by removing the 'cfrg' resource from your Part.r resource file.  There is no workaround at this time - the warning is annoying, but the linked part created by CodeWarrior is fine.
  43.  
  44. Happy Updating!
  45.  
  46. © 1993 - 1996 Apple Computer, Inc. All rights reserved.
  47. Apple, the Apple Logo, Macintosh, and OpenDoc are trademarks of Apple Computer, Inc., registered in the United States and other countries.